@import "font";
@import "highlight";
@import "variable";
html {
    height: 100%;
    font: {
        size: 62.5%;
        family: "Source Sans Pro", "Helvetica Neue", Arial, sans-serif;
    }
    color: $word;
}
#app {
    
}
body {
    height: 100%;    
    margin: 0;
    min-width: 300px;
}

body * {
    box-sizing: border-box;
}

a {
    text-decoration: none;
    color: $white;
}
#articleId a {
    color: #333;
}
.clear::after {
    content: '';
    display: block;
    clear: both;
}

#main {
    font-size: 1.4rem;
    padding: .5em 0 1em 0;
    width: 95%;
    max-width: 850px;
    margin: auto;
}

h1 {
    font-size: 1.7em;
}

h1,
h2,
h3,
h4 {
    color: $title;
}

h3:before,
h4:before {
    content: "# ";
    color: $base;
}

.time {
    color: $special;
}

// 文章解析的全局样式
article {
    h2 {
        padding-bottom: .6em;
        border-bottom: 1px solid $special;
    }
    .time:before {
        content: "";
    }
    img {
        max-width: 100%;
    }
    a {
        color: $base;
    }
    blockquote {
        border-left: 3px solid $base;
        margin: 2em 0;
        padding-left: 1em;
        font-weight: 600;
    }
}

// slide-fade动画效果
.slide-fade-enter-active {
    transition: all 0.5s ease;
}

.slide-fade-leave-active {
    transition: all 0.5s cubic-bezier(1.0, 0.5, 0.8, 1.0);;
}

.slide-fade-enter,
.slide-fade-leave-to {
    transform: translateX(235px);
}

.fade-enter-active, .fade-leave-active {
    transition: opacity .2s ease;
}
.fade-enter, .fade-leave-to /* .fade-leave-active below version 2.1.8 */ {
    opacity: 0;
}

//.fade-enter-active {
//    transition: opacity 0s;
//}

@media screen and (max-width: 630px) {
    #main {
        margin-top: 4.7em;
    }
}
